﻿
// ReSharper disable InconsistentNaming
using Gp.Scripts.Core;
using Gp.Scripts.GUI;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using NRFramework;

namespace Gp.Scripts.GUI 
{
    public class PanelStartScreenBase : GUIPanel
    {		protected Animator mPanelStartScreen_Animator;		protected Animator mTabHome_Animator;		protected Button mBtnNewGame_Button;		protected Button mBtnContinue_Button;		protected Button mMultiplayer_Button;		protected Button mBtnHelp_Button;		protected Button mBtnSettings_Button;		protected Button mBtnExitGame_Button;		protected UIWidgetBehaviour mWidgetPlayStory_UIWidgetBehaviour;
        protected override void OnBindCompsAndEvents() 
        {			mPanelStartScreen_Animator = (Animator)viewBehaviour.GetComponentByIndexs(0, 0);			mTabHome_Animator = (Animator)viewBehaviour.GetComponentByIndexs(1, 0);			mBtnNewGame_Button = (Button)viewBehaviour.GetComponentByIndexs(2, 0);			mBtnContinue_Button = (Button)viewBehaviour.GetComponentByIndexs(3, 0);			mMultiplayer_Button = (Button)viewBehaviour.GetComponentByIndexs(4, 0);			mBtnHelp_Button = (Button)viewBehaviour.GetComponentByIndexs(5, 0);			mBtnSettings_Button = (Button)viewBehaviour.GetComponentByIndexs(6, 0);			mBtnExitGame_Button = (Button)viewBehaviour.GetComponentByIndexs(7, 0);			mWidgetPlayStory_UIWidgetBehaviour = (UIWidgetBehaviour)viewBehaviour.GetComponentByIndexs(8, 0);			BindEvent(mBtnNewGame_Button);			BindEvent(mBtnContinue_Button);			BindEvent(mMultiplayer_Button);			BindEvent(mBtnHelp_Button);			BindEvent(mBtnSettings_Button);			BindEvent(mBtnExitGame_Button);		}

        protected override void OnUnbindCompsAndEvents() 
        {			UnbindEvent(mBtnNewGame_Button);			UnbindEvent(mBtnContinue_Button);			UnbindEvent(mMultiplayer_Button);			UnbindEvent(mBtnHelp_Button);			UnbindEvent(mBtnSettings_Button);			UnbindEvent(mBtnExitGame_Button);			mPanelStartScreen_Animator = null;			mTabHome_Animator = null;			mBtnNewGame_Button = null;			mBtnContinue_Button = null;			mMultiplayer_Button = null;			mBtnHelp_Button = null;			mBtnSettings_Button = null;			mBtnExitGame_Button = null;			mWidgetPlayStory_UIWidgetBehaviour = null;		}
    }
}